import request from '@/utils/request'

// 故障报告列表
export function listReport(query){
  return request({
    url: '/gelly/report/list',
    method: 'get',
    params: query
  })
}
// 导出故障报告








// 查询追踪情况列表
export function listTrack(query) {
  return request({
    url: '/gelly/track/list',
    method: 'get',
    params: query
  })
}

// 查询追踪情况详细
export function getTrack(trackId) {
  return request({
    url: '/gelly/track/' + trackId,
    method: 'get'
  })
}

// 新增追踪情况
export function addTrack(data) {
  return request({
    url: '/gelly/track',
    method: 'post',
    data: data
  })
}

// 修改追踪情况
export function updateTrack(data) {
  return request({
    url: '/gelly/track',
    method: 'put',
    data: data
  })
}

// 删除追踪情况
export function delTrack(trackId) {
  return request({
    url: '/gelly/track/' + trackId,
    method: 'delete'
  })
}
